package com.atguigu.constructor;

public class TestBook {
    public static void main(String[] args) {
        //使用全参构造创建Book对象
        Book b = new Book("Java宝典",100);
        System.out.println(b.name +"," + b.price);

        Book b2 = new Book("Java从入门到放弃",99);
        System.out.println(b2.name +"," + b2.price);

    }
}
